package com.pyl.admin.system.validator;

import javax.validation.constraints.NotBlank;

import org.hibernate.validator.constraints.Length;

import lombok.Data;

/**
 * @author 灵魂贰婶
 * @date 2018/8/14
 */
@Data
public class LoginForm {

	@NotBlank(message = "用户名不能为空")
	@Length(max = 5, min = 2, message = "用户名为2-5个字符")
	private String username;

	@NotBlank(message = "密码不能为空")
	private String password;

	private String captcha;

	private String rememberMe;

}
